package chapter4;
// 定义final关键字修饰Animal类
class Animal2{
}
// Dog类继承Animal2类
class Dog2 extends Animal2{
}
// 定义测试类
public class Example07 {
    public static void main(String[] args) {
        Dog2 d = new Dog2();// 创建Dog2类的实例对象
    }
}
